<!DOCTYPE html>
<html>
<head>
    <title>Laravel</title>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
</head>
<body>
    <button>ajax发送信息到服务器</button>
</body>
</html>
<script>
    $.ajaxSetup({
       headers: {
           'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
       }
    });
    $('button').on('click', function () {
        $.post('/ajaxReturn', {}, function (data) {
            
            alert(data);
        });
    })
</script>
